we’ll still use Credit to demonstrate multiple regression with:
A numerical outcome variable y, in this case credit card balance.
Two explanatory variables:
A first numerical explanatory variable \(x_1\). In this case, their credit limit.
A second numerical explanatory variable \(x_2\). In this case, their income (in thousands of dollars).
Let’s load the Credit data and:
View command to look at raw data.select() only Balance, Limit, Income, Rating and Age variables. (We will use Rating and Age in a forthcoming exercise)